runtime.p.runq (field)
32 uses
runtime (current package)
proc.go#L5671: gp := pp.runq[pp.runqtail%uint32(len(pp.runq))].ptr()
proc.go#L6599: if n > int32(len(pp.runq))/2 {
proc.go#L6600: n = int32(len(pp.runq)) / 2
proc.go#L6786: if t-h < uint32(len(pp.runq)) {
proc.go#L6787: pp.runq[t%uint32(len(pp.runq))].set(gp)
proc.go#L6801: var batch [len(pp.runq)/2 + 1]*g
proc.go#L6806: if n != uint32(len(pp.runq)/2) {
proc.go#L6810: batch[i] = pp.runq[(h+i)%uint32(len(pp.runq))].ptr()
proc.go#L6847: for !q.empty() && t-h < uint32(len(pp.runq)) {
proc.go#L6849: pp.runq[t%uint32(len(pp.runq))].set(gp)
proc.go#L6857: return (pp.runqtail + o) % uint32(len(pp.runq))
proc.go#L6861: pp.runq[off(i)], pp.runq[off(j)] = pp.runq[off(j)], pp.runq[off(i)]
proc.go#L6893: gp := pp.runq[h%uint32(len(pp.runq))].ptr()
proc.go#L6916: if qn > uint32(len(pp.runq)) { // read inconsistent h and t
proc.go#L6932: gp := pp.runq[(h+i)%uint32(len(pp.runq))].ptr()
proc.go#L6982: if n > uint32(len(pp.runq)/2) { // read inconsistent h and t
proc.go#L6986: g := pp.runq[(h+i)%uint32(len(pp.runq))]
proc.go#L7000: n := runqgrab(p2, &pp.runq, t, stealRunNextG)
proc.go#L7005: gp := pp.runq[(t+n)%uint32(len(pp.runq))].ptr()
proc.go#L7010: if t-h+n >= uint32(len(pp.runq)) {
runtime2.go#L673: runq [256]guintptr
![]() |
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |